import http from '@/api/http.js'

export default async function(){
	
	let params, infoRes;
		params = {
			method: "api/v2/member/info/is_bind_third",
		}
		infoRes = await http(params);
		uni.setStorageSync('isBindOfThird', infoRes.data.is_bind_third)
		if(infoRes.data==1){
			uni.reLaunch({
				url:'/platforms/h5/user/phone'
			})
		}
}